home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-14 | 3.3 KB | 155 lines | [TEXT/MPS ] |
- /*
- File: SamplePart.idl
-
- Contains: SamplePart object interface
-
- Written by: Steve Smith
-
- Copyright: © 1994-95 by Apple Computer, Inc., all rights reserved.
-
- -------------------------------------------------------------------
-
- Notes: If you need to add a new method to SamplePart you should
- make that change in the C++ implementation. Adding new
- methods to the SOM interface should only be necessary if
- the method must be publically exported from the library.
- In that case, you will have to run the SOM compiler/
- emitter.
- */
-
-
- #ifndef _SAMPLEPART_
- #define _SAMPLEPART_
-
- #ifndef _PART_
- #include "Part.idl"
- #endif
-
- #ifndef _SAMPLEPARTVERS_
- #include "SamplePartVers.h"
- #endif
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- #ifdef __PRIVATE__
- //==============================================================================
- // Implementation Types
- //==============================================================================
-
- typedef somToken SamplePart;
- #endif
-
- //==============================================================================
- // som_SamplePart
- //==============================================================================
-
- module SampleCode
- {
- interface som_SamplePart : ODPart
- {
- #ifdef __SOMIDL__
- implementation
- {
- majorversion = somClassMajorVersion;
- minorversion = somClassMinorVersion;
-
- functionprefix = som_SamplePart__;
- override:
- //# ODObject methods
- somInit,
- somUninit,
- AcquireExtension,
- HasExtension,
- Purge,
- ReleaseExtension,
-
- //# ODRefCountedObject methods
- Release,
-
- //# ODPersistentObject methods.
- CloneInto,
- Externalize,
- ReleaseAll,
-
- //# ODPart methods
- AbortRelinquishFocus,
- AcquireContainingPartProperties,
- AdjustBorderShape,
- AdjustMenus,
- AttachSourceFrame,
- BeginRelinquishFocus,
- CanvasChanged,
- CanvasUpdated,
- ChangeKind,
- ClonePartInfo,
- CommitRelinquishFocus,
- ContainingPartPropertiesUpdated,
- CreateLink,
- DisplayFrameAdded,
- DisplayFrameClosed,
- DisplayFrameConnected,
- DisplayFrameRemoved,
- DisposeActionState,
- DragEnter,
- DragLeave,
- DragWithin,
- Draw,
- Drop,
- DropCompleted,
- EditInLinkAttempted,
- EmbeddedFrameUpdated,
- EmbeddedFrameSpec,
- ExternalizeKinds,
- FacetAdded,
- FacetRemoved,
- FocusAcquired,
- FocusLost,
- FrameShapeChanged,
- FulfillPromise,
- GeometryChanged,
- GetPrintResolution,
- HandleEvent,
- HighlightChanged,
- InitPart,
- InitPartFromStorage,
- LinkStatusChanged,
- LinkUpdated,
- Open,
- PresentationChanged,
- #ifndef _PLATFORM_MACINTOSH_
- ReadActionState, //# Mac doesn't support persistent undo
- #endif
- ReadPartInfo,
- RedoAction,
- RemoveEmbeddedFrame,
- RequestEmbeddedFrame,
- RequestFrameShape,
- RevealFrame,
- RevealLink,
- SequenceChanged,
- UndoAction,
- UsedShapeChanged,
- ViewTypeChanged,
- #ifndef _PLATFORM_MACINTOSH_
- WriteActionState, //# Mac doesn't support persistent undo
- #endif
- WritePartInfo;
-
- #ifdef __PRIVATE__
- passthru C_xih =
- "class SamplePart;";
-
- SamplePart* fPart;
-
- #endif //__PRIVATE__
- };
-
- #endif //__SOMIDL__
- };
- };
-
- #endif //__SAMPLEPART__
-
-